# -*- coding: utf-8 -*-
# @Time : 2021/3/10 17:51 
# @Author : for 
# @File : urls.py 
# @Motto: good good study,day day up

from django.urls import path, include
from django.conf import settings

from blog.views import IndexView, BlogDetailView, TagsView, TagDetailView, TypesView, TypeDetailView, ArchivesView, \
    AboutUsView, SearchView

app_name = 'blog'

urlpatterns = [
    path('', IndexView.as_view(), name='index'),
    path('blog/<int:id>', BlogDetailView.as_view(), name='detail'),
    path('tags/', TagsView.as_view(), name='tags'),
    path('tag/<int:id>', TagDetailView.as_view(), name='tag_detail'),
    path('types/', TypesView.as_view(), name='types'),
    path('type/<int:id>', TypeDetailView.as_view(), name='type_detail'),
    path('archives/', ArchivesView.as_view(), name='archives'),
    path('about_us/', AboutUsView.as_view(), name='about_us'),
    path('search/', SearchView.as_view(), name='search'),
]
